SPAHR05020_청구관리[일반건진].xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>청구관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <acptlst>
  11. <item>
  12. <sel/>
  13. <pid/>
  14. <hngnm/>
  15. <orddd/>
  16. <rsrvdd/>
  17. <rsrvno/>
  18. <insutrgtflag/>
  19. <dgflag/>
  20. <insuid/>
  21. <rrgstno/>
  22. <telno/>
  23. <mpphon/>
  24. <email/>
  25. <munflg/>
  26. <rsltflg/>
  27. <panflg/>
  28. </item>
  29. </acptlst>
  30. </main>
  31. <send>
  32. <srchfromdd/>
  33. <srchtodd/>
  34. <srchhealexamflag/>
  35. <srchhealexamdetlflag/>
  36. <srchinstcd/>
  37. <srchbizyear/>
  38. <srchonetwotype/>
  39. <srchasktype/>
  40. <srchcmpycd/>
  41. <srchcmpynm/>
  42. <indata/>
  43. <srchreqflag/>
  44. <srchreqdetlflag/>
  45. <srchreqtatm/>
  46. <srchreqpatm/>
  47. <srchreqbatm/>
  48. <srchreqcatm/>
  49. </send>
  50. <init>
  51. <baseinfo>
  52. <hedetlflaglst/>
  53. <asktype/>
  54. </baseinfo>
  55. </init>
  56. <temp/>
  57. <temp2/>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. fGetBaseInfo();
  63. fInitCtrl(true);
  64. ]]>
  65. </script>
  66. <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded"/>
  67. <submission id="TRAHR00604" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/acptlst"/>
  68. <submission id="TRAHR00605" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp"/>
  69. <submission id="TRAHR00606" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp"/>
  70. <submission id="TRAHR00607" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp2"/>
  71. <submission id="TRAHR00608" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp3"/>
  72. <submission id="TRAHR00609" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp4"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  80. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  81. <script type="javascript" src="../../../ast/healexamweb/js/AHA010.js"/>
  82. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  83. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  84. <script type="javascript">
  85. <![CDATA[
  86. function fGetBaseInfo(){
  87. var healexamfg = fGetHealExamFlag();
  88. zbcfGetCodeList( new Array( "A0070","A0108"),
  89. new Array("/root/init/baseinfo/hedetlflaglst"
  90. ,"/root/init/baseinfo/asktype"
  91. ) );
  92. submit("TRZBC00101");
  93. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  94. model.setValue("/root/send/srchhealexamflag", healexamfg);
  95. }
  96. /**===================================================================================
  97. *대상자 가져오기
  98. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  99. =====================================================================================*/
  100. function fGetRsltPatList(){
  101. openLoadingBar("건진자 대상 리스트를 가져오는 중 입니다..") ;//처리중 화면을 오픈한다.
  102. model.removeNodeset(grd_acptlst.nodeset);
  103. model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd") );
  104. model.setValue("/root/send/srchhealexamflag", "G");
  105. if(model.getValue("/root/send/srchreqflag") == 'T'){
  106. model.setValue("/root/send/srchhealexamdetlflag", "G01");
  107. }
  108. submit("TRAHR00604");
  109. if(model.getValue("/root/send/srchreqflag") == "T"){
  110. reqdaydeltno1.value = "11100338_901T_0111_090226_01";
  111. reqdaydeltno2.value = "11100338_901T_0111_090226_99";
  112. }
  113. closeLoadingBar() ;//처리중 화면을 close한다.
  114. model.refresh();
  115. }
  116. function fExeAskFile(){
  117. openLoadingBar("처리중 입니다..") ;//처리중 화면을 오픈한다.
  118. // 파일명 가져오기
  119. submit("TRAHR00606");
  120. model.setValue("/root/send/indata", grd_acptlst.getUpdateData("update"));
  121. var filenm = model.getValue("/root/temp/item/filename");
  122. var file = window.fileDialog("save",",",false, filenm,"txt","Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  123. // 건강검진비 청구서/추가지급 청구서
  124. model.makeNode("/root/send/filenm");
  125. model.setValue("/root/send/filenm", filenm);
  126. // alert(model.getValue("/root/send/filenm"));
  127. // submit("TRAHR00609");
  128. //1차건진자
  129. submit("TRAHR00605");
  130. //2차건진자
  131. submit("TRAHR00607");
  132. //문진표
  133. submit("TRAHR00608");
  134. var nodeList = instance1.selectNodes(grd_acptlst.nodeset + "[sel='Y']");
  135. for( var i = 0 ; i <= nodeList.length ; i++){
  136. copyNodeListType("/root/temp", "/root/temp2/item["+ i +"]", "after");
  137. }
  138. for( var i = 0 ; i <= nodeList.length ; i++){
  139. copyNodeListType("/root/temp", "/root/temp3/item["+ i +"]", "after");
  140. }
  141. model.refresh();
  142. if (file != "")
  143. {
  144. grd_hidden.saveText(file);
  145. }
  146. closeLoadingBar() ;//처리중 화면을 close한다.
  147. }
  148. function fInitCtrl(bAll){
  149. if( bAll == true ){
  150. var curDt = getCurrentDate();
  151. model.setValue(ipt_rsvfrdd.attribute("ref") , curDt);
  152. model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
  153. }
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">청구관리</caption>
  161. </group>
  162. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  163. <group id="group2" style="left:0px; top:10px; width:1194px; height:100px; vertical-align:top; ">
  164. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:100px; "/>
  165. <caption id="caption7" class="search_name" style="left:635px; top:10px; width:94px; height:17px; ">1/2차구분 :</caption>
  166. <button id="button1" class="btn1_letter2" style="left:1044px; top:19px; width:56px; height:22px; ">
  167. <caption>실행</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. fExeAskFile();
  171. ]]>
  172. </script>
  173. </button>
  174. <select1 id="combo3" ref="/root/send/srchreqdetlflag" class="combo_search" appearance="minimal" style="left:460px; top:10px; width:139px; height:19px; ">
  175. <choices>
  176. <item>
  177. <label>일반건강검진</label>
  178. <value>1</value>
  179. </item>
  180. <item>
  181. <label>생애건강진단</label>
  182. <value>2</value>
  183. </item>
  184. <item>
  185. <label>일반의료급여</label>
  186. <value>3</value>
  187. </item>
  188. <item>
  189. <label>생애의료급여</label>
  190. <value>4</value>
  191. </item>
  192. </choices>
  193. </select1>
  194. <line id="line1" class="line_4" style="x1:1028px; y1:8px; x2:1028px; y2:93px; "/>
  195. <caption id="caption10" class="search_name" style="left:15px; top:40px; width:91px; height:17px; ">건진일자 :</caption>
  196. <caption id="caption11" class="search_n_b" style="left:220px; top:40px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  197. <caption id="caption14" class="search_name" style="left:365px; top:10px; width:95px; height:17px; ">건진구분2 :</caption>
  198. <caption id="caption4" class="search_name" style="left:365px; top:40px; width:86px; height:17px; ">사업장 :</caption>
  199. <select1 id="combo2" ref="/root/send/srchonetwotype" class="combo_search" appearance="minimal" style="left:730px; top:10px; width:90px; height:19px; ">
  200. <choices>
  201. <item>
  202. <label>1차</label>
  203. <value>1</value>
  204. </item>
  205. <item>
  206. <label>2차</label>
  207. <value>2</value>
  208. </item>
  209. </choices>
  210. </select1>
  211. <button id="btn_selcmpy" class="icon_search" style="left:545px; top:40px; width:16px; height:16px; ">
  212. <caption/>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. fGetComnCd("SMAHA00400", "08" , "nm", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
  216. ]]>
  217. </script>
  218. </button>
  219. <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:460px; top:40px; width:80px; height:19px; ">
  220. <script type="javascript" ev:event="onkeyup">
  221. <![CDATA[
  222. inputEnterKey("btn_selcmpy", "DOMActivate");
  223. ]]>
  224. </script>
  225. </input>
  226. <output id="opt_srchcmpynm" ref="/root/send/srchcmpynm" class="output_fix" style="left:570px; top:40px; width:140px; height:19px; "/>
  227. <button id="button2" class="btn1_letter2" style="left:1109px; top:19px; width:56px; height:22px; ">
  228. <caption>조회</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. //xforms-ready 값으로 초기화
  232. model.reset("/root/send");
  233. fGetRsltPatList();
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption1" class="search_name" style="left:15px; top:10px; width:98px; height:17px; ">건진구분1 :</caption>
  238. <select1 id="rdo_srchcond" ref="/root/send/srchreqflag" class="radio_search" overflow="visible" appearance="full" cols="3" cellspacing="5" style="left:110px; top:10px; width:210px; height:20px; border-style:none; ">
  239. <choices>
  240. <item>
  241. <label>공단건진</label>
  242. <value>T</value>
  243. </item>
  244. <item>
  245. <label>암건진</label>
  246. <value>C</value>
  247. </item>
  248. <item>
  249. <label>구강건진</label>
  250. <value>O</value>
  251. </item>
  252. </choices>
  253. </select1>
  254. <caption id="caption2" class="search_name" style="left:15px; top:70px; width:90px; height:17px; ">청구번호 :</caption>
  255. <output id="reqdaydeltno2" class="output_fix" style="left:330px; top:70px; width:200px; height:19px; "/>
  256. <caption id="caption5" class="search_n_b" style="left:315px; top:70px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  257. </group>
  258. <caption id="caption3" class="tit_2" style="left:5px; top:115px; width:111px; height:13px; ">건진대상자</caption>
  259. <line id="line2" class="line_1" style="x1:0px; y1:135px; x2:1194px; y2:135px; "/>
  260. <datagrid id="grd_acptlst" nodeset="/root/main/acptlst/item" caption="^등록번호^성명^검진일자^예약일자^예약번호^1/2차구분^증번호^주민번호^전화번호^핸드폰번호^이메일^공단^개인^보건소^사업장|^등록번호^성명^검진일자^예약일자^예약번호^1/2차구분^증번호^주민번호^전화번호^핸드폰번호^이메일^공단^개인^보건소^사업장" colwidth="24, 89, 131, 142, 109, 100, 100, 0, 100, 0, 0, 0, 80, 80, 80, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:140px; width:1194px; height:600px; ">
  261. <col ref="sel" type="checkbox" checkvalue="Y,N"/>
  262. <col ref="pid"/>
  263. <col ref="hngnm"/>
  264. <col ref="orddd" format="yyyy-mm-dd" style="left:264px; top:23px; width:142px; height:23px; "/>
  265. <col ref="rsrvdd" format="yyyy-mm-dd" style="left:264px; top:23px; width:142px; height:23px; "/>
  266. <col ref="rsrvno"/>
  267. <col ref="dgflag"/>
  268. <col ref="insuid" visibility="hidden"/>
  269. <col ref="rrgstno"/>
  270. <col ref="telno" visibility="hidden"/>
  271. <col ref="mpphon" visibility="hidden"/>
  272. <col ref="email" visibility="hidden"/>
  273. <col ref="srchreqtatm"/>
  274. <col ref="srchreqpatm"/>
  275. <col ref="srchreqbatm"/>
  276. <col ref="srchreqcatm"/>
  277. </datagrid>
  278. <line id="line3" class="line_2" style="x1:0px; y1:184px; x2:1194px; y2:184px; "/>
  279. <input id="ipt_rsvfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:110px; top:50px; width:105px; height:19px; "/>
  280. <input id="ipt_rsvtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:235px; top:50px; width:100px; height:19px; "/>
  281. <datagrid id="grd_hidden" nodeset="/root/temp/item" visibility="hidden" caption="환자결과" colwidth="815" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:440px; width:1175px; height:85px; ">
  282. <col ref="rslt"/>
  283. </datagrid>
  284. <output id="reqdaydeltno1" class="output_fix" style="left:110px; top:80px; width:200px; height:19px; "/>
  285. </group>
  286. </xhtml:body>
  287. </xhtml:html>